<?php

namespace sil29\VitrineBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ElementFacturable
 */
class ElementFacturable
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $nom;

    /**
     * @var string
     */
    private $prix;

    /**
     * @var string
     */
    private $description;

    /**
     * @var string
     */
    private $imageSrc;

    /**
     * @var integer
     */
    private $typeElement;

    /**
     * @var \sil29\VitrineBundle\Entity\Categorie
     */
    private $categorie;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set nom
     *
     * @param string $nom
     * @return ElementFacturable
     */
    public function setNom($nom)
    {
        $this->nom = $nom;

        return $this;
    }

    /**
     * Get nom
     *
     * @return string 
     */
    public function getNom()
    {
        return $this->nom;
    }

    /**
     * Set prix
     *
     * @param string $prix
     * @return ElementFacturable
     */
    public function setPrix($prix)
    {
        $this->prix = $prix;

        return $this;
    }

    /**
     * Get prix
     *
     * @return string 
     */
    public function getPrix()
    {
        return $this->prix;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return ElementFacturable
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set imageSrc
     *
     * @param string $imageSrc
     * @return ElementFacturable
     */
    public function setImageSrc($imageSrc)
    {
        $this->imageSrc = $imageSrc;

        return $this;
    }

    /**
     * Get imageSrc
     *
     * @return string 
     */
    public function getImageSrc()
    {
        return $this->imageSrc;
    }

    /**
     * Set typeElement
     *
     * @param integer $typeElement
     * @return ElementFacturable
     */
    public function setTypeElement($typeElement)
    {
        $this->typeElement = $typeElement;

        return $this;
    }

    /**
     * Get typeElement
     *
     * @return integer 
     */
    public function getTypeElement()
    {
        return $this->typeElement;
    }

    /**
     * Set categorie
     *
     * @param \sil29\VitrineBundle\Entity\Categorie $categorie
     * @return ElementFacturable
     */
    public function setCategorie(\sil29\VitrineBundle\Entity\Categorie $categorie = null)
    {
        $this->categorie = $categorie;

        return $this;
    }

    /**
     * Get categorie
     *
     * @return \sil29\VitrineBundle\Entity\Categorie 
     */
    public function getCategorie()
    {
        return $this->categorie;
    }
    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $lignesCommande;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->lignesCommande = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add lignesCommande
     *
     * @param \sil29\VitrineBundle\Entity\LigneCommande $lignesCommande
     * @return ElementFacturable
     */
    public function addLignesCommande(\sil29\VitrineBundle\Entity\LigneCommande $lignesCommande)
    {
        $this->lignesCommande[] = $lignesCommande;

        return $this;
    }

    /**
     * Remove lignesCommande
     *
     * @param \sil29\VitrineBundle\Entity\LigneCommande $lignesCommande
     */
    public function removeLignesCommande(\sil29\VitrineBundle\Entity\LigneCommande $lignesCommande)
    {
        $this->lignesCommande->removeElement($lignesCommande);
    }

    /**
     * Get lignesCommande
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getLignesCommande()
    {
        return $this->lignesCommande;
    }
    
    public function __toString() {
    	return $this->id;
    }
}
